Skip to content

v2.0.2#21

Merged
razvantomegea merged 1 commit into
mainfrom
development
Jun 27, 2025
Merged

v2.0.2#21
razvantomegea merged 1 commit into
mainfrom
development

Conversation

@razvantomegea

Copy link
Copy Markdown
Contributor

No description provided.

…ndling (#20)

* Refactor formatAmount function and update tests for improved input handling

- Enhanced the FormatAmountProps interface for clarity and added documentation.
- Maintained backward compatibility with the old interface.
- Improved the formatAmount function to handle various decimal formatting scenarios.
- Updated tests to cover new functionality and ensure robust input validation.

* Enhance formatAmount function with detailed documentation and improved formatting options

- Expanded the FormatAmountProps interface with comprehensive comments and examples for better clarity.
- Refined the formatAmount function to handle various edge cases, including very small amounts and custom formatting options.
- Updated unit tests to validate new functionality and ensure robust error handling for invalid inputs.

* Enhance formatAmount function documentation and add new test cases

- Updated comments in the FormatAmountProps interface to clarify decimal formatting behavior.
- Improved the formatAmount function to ensure consistent padding of decimal places based on the showLastNonZeroDecimal flag.
- Added new unit tests to validate the updated formatting logic and ensure correct handling of trailing zeros.

* Refactor FormatAmountProps interface and update formatAmount function

- Renamed FormatAmountProps to FormatAmountPropsType for clarity.
- Removed backward compatibility layer to streamline the interface.
- Updated the formatAmount function to use the new interface.
- Enhanced test cases with comments for better understanding of expected outputs.

* Enhance formatAmount function and tests for improved formatting behavior

- Introduced a new pipe utility to streamline the formatting process within the formatAmount function.
- Updated the function to handle various edge cases more effectively, including better management of decimal places and negative values.
- Enhanced documentation within the FormatAmountProps interface to clarify formatting options and examples.
- Improved unit tests for better clarity and coverage of formatting scenarios, including handling of very small amounts and custom decimal settings.

* Update package version to 2.0.2-alpha.1 in package.json

* Update package version to 2.0.2 in package.json

* Update CHANGELOG for v2.0.2 release date correction to 2025-06-27
@razvantomegea razvantomegea merged commit 055b326 into main Jun 27, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants